package com.example.operation.controller;

import com.example.operation.dto.DispatchConditionDto;
import com.example.operation.service.impl.DispatchConditionServiceImpl;
import com.example.operation.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName: DispatchConditionController
 * @Description:
 * @Author
 * @Date 2021/11/24
 * @Version 1.0
 */
/*

@Api(tags = "指定条件包邮模块")
@RestController
@RequestMapping("/dispatchCondition")
public class DispatchConditionController {


    @Autowired
    private DispatchConditionServiceImpl dispatchConditionService;

    @ApiOperation(value = "指定条件包邮修改接口")
    @PutMapping("update")
    public Integer update(@RequestBody DispatchConditionDto dispatchConditionDto){
        return dispatchConditionService.update(dispatchConditionDto);
    }

    @ApiOperation(value = "指定条件包邮新增接口")
    @PostMapping("/save")
    public Result<String> save(@RequestBody DispatchConditionDto dispatchConditionDto){
        dispatchConditionService.insert(dispatchConditionDto);
        return Result.ok("指定条件包邮新增成功");
    }

    @ApiOperation(value = "指定条件包邮删除接口")
    @DeleteMapping("/delect")
    public Integer delect(@RequestParam("id") Integer id){
        return dispatchConditionService.delectById(id);
    }

}
*/
